package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 油枪号信息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_gas_station_nozzle")
public class CarParkGasStationNozzle extends Model<CarParkGasStationNozzle> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 油号
     */
    @TableField("octane_number")
    private Integer octaneNumber;
    /**
     * 枪号
     */
    @TableField("nozzle_number")
    private String nozzleNumber;
    /**
     * 停车场标识
     */
    @TableField("p_id")
    private String pId;

    public void freeData() {
        this.id = null;
        this.octaneNumber = null;
        this.nozzleNumber = null;
        this.pId = null;
    }

}
